package com.mf.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.Getter;

import java.time.LocalDate;

/**
 * @Author: lmf
 * @Create: 2024/9/1 21:08
 * Description:  工作信息
 */
@Data
public class WorkInfoVo {
    @Schema(description = "id")
    private Integer id;

    @Schema(description = "开始日期", example = "2024-09-01")
    @NotNull(message = "开始日期不能为空")
    private LocalDate start;

    @Schema(description = "结束日期", example = "2024-09-01")
    @NotNull(message = "结束日期不能为空")
    private LocalDate end;


    @Schema(description = "公司名称", example = "腾讯")
    @NotBlank(message = "公司名称不能为空")
    private String companyName;

    @Schema(description = "担任任务", example = "开发")
    @NotBlank(message = "担任任务不能为空")
    private String job;

    @Schema(description = "离开原因", example = "离职")
    @NotBlank(message = "离开原因不能为空")
    private String leaveReason;

    @Schema(description = "证明人", example = "张三")
    private String certifier;

    @Schema(description = "证明人手机号", example = "12345678901")
    private String certifierPhone;

    private String remark;

    @Schema(description = "花名册id")
    @NotNull(message = "花名册id不能为空")
    private Integer rosterId;
}
